package com.vrv.app.cyberspace.modules.sys.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author sm
 * @since 2017-12-25
 */
@TableName("EVENT_APPROVAL_TABLE")
public class EventApprovalTable extends Model<EventApprovalTable> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 关联信息ID
     */
	private Integer baseID;
    /**
     * 豆豆号
     */
	private String userID;
    /**
     * 创建时间
     */
	private Date createTime;
    /**
     * 审核时间
     */
	private Date approvalTime;
    /**
     * 审批意见
     */
	private String advice;
    /**
     * 审核状态【0--原始;1--审核中；2--退回；3--同意】
     */
	private Integer approvalStatue;

	@TableField(exist = false)
	private UserTable userInfo;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getBaseID() {
		return baseID;
	}

	public void setBaseID(Integer baseID) {
		this.baseID = baseID;
	}

	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getApprovalTime() {
		return approvalTime;
	}

	public void setApprovalTime(Date approvalTime) {
		this.approvalTime = approvalTime;
	}

	public String getAdvice() {
		return advice;
	}

	public void setAdvice(String advice) {
		this.advice = advice;
	}

	public Integer getApprovalStatue() {
		return approvalStatue;
	}

	public void setApprovalStatue(Integer approvalStatue) {
		this.approvalStatue = approvalStatue;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "EventApprovalTable{" +
			", id=" + id +
			", baseID=" + baseID +
			", userID=" + userID +
			", createTime=" + createTime +
			", approvalTime=" + approvalTime +
			", advice=" + advice +
			", approvalStatue=" + approvalStatue +
			"}";
	}

	public UserTable getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(UserTable userInfo) {
		this.userInfo = userInfo;
	}
}
